/* 登录页面主容器 */
.login {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(63, 94, 251, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(252, 176, 64, 0.15) 0%, transparent 50%);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* 登录包装器 */
.loginWrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

/* 登录头部 */
.loginHeader {
  text-align: center;
  margin-bottom: 3rem;
}

.loginHeader .logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.loginHeader .logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.loginHeader .logo:hover::before {
  left: 100%;
}

.loginHeader .logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.loginHeader .logo img {
  width: 52px;
  height: 52px;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.loginHeader h1 {
  color: #2d3748;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loginHeader p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* 登录容器 */
.loginContainer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.loginContainer:hover {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* 登录卡片 */
.loginCard {
  background: transparent;
  border: none;
  padding: 3rem;
  box-shadow: none;
}

/* 卡片头部 */
.cardHeader {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.cardHeader::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  0% {
    width: 0;
  }
  100% {
    width: 80px;
  }
}

.cardHeader h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cardHeader p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* 输入框样式 */
.loginInput {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.loginInput:hover {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(102, 126, 234, 0.08);
}

.loginInput:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 8px 24px rgba(102, 126, 234, 0.16);
  transform: translateY(-1px);
}

.loginInput .ant-input {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 500;
}

.loginInput .ant-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

/* 登录按钮样式 - 修复显示问题 */
.loginButton {
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25), 0 4px 12px rgba(102, 126, 234, 0.15);
  color: #ffffff !important;
  width: 100%;
  margin-top: 2rem;
}

.loginButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loginButton:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.35), 0 8px 24px rgba(102, 126, 234, 0.2);
  color: #ffffff !important;
}

.loginButton:hover::before {
  left: 100%;
}

.loginButton:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25), 0 4px 12px rgba(102, 126, 234, 0.15);
}

.loginButton:focus {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

/* 输入框图标 */
.inputIcon {
  color: #64748b;
  font-size: 1.1rem;
}

.ant-input-prefix {
  margin-right: 0.75rem;
  color: #64748b;
}

.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 8px 24px rgba(102, 126, 234, 0.16);
}

/* Ant Design 表单样式 */
.ant-form-item {
  margin-bottom: 2rem;
}

.ant-form-item-label > label {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .loginWrapper {
    max-width: 100%;
    padding: 1rem;
  }

  .loginHeader h1 {
    font-size: 2rem;
  }

  .loginHeader .logo {
    width: 72px;
    height: 72px;
  }

  .loginCard {
    padding: 2rem 1.5rem;
  }
}
